<script>
    // 定义对象
    let user = {"name": "lucy", "age" : 20}

    // 获取对象值
    let name2 = user.name
    let age2 = user.age
    console.log(name2, age2)

    // es6 解构
    let {name, age} = user // 解构属性必须是对象中的属性
    console.log(name, age)

</script>